Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


GetPrintResolution

The GetPrintResolution method should return the minimum desired resolution, in dots per inch, required for printing the content of the specified display frame.

ODULong GetPrintResolution (in ODFrame frame);
frame
A reference to a display frame for which the resolution is needed.
return value
The minimum desired resolution, expressed in dots per inch.
DISCUSSION
The root part calls this method when creating the document's print job to guarantee that it can display the highest-resolution part.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

EXCEPTIONS
kODErrInvalidFrame
The specified frame is not a display frame of this part.
SEE ALSO
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Printing the Document" on page 174 in OpenDoc Programmer's Guide.
"Responding to GetPrintResolution" on page 176 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help